import request from '@/utils/request'

// 查询申请信息列表
export function listRequest(query) {
  return request({
    url: '/bath/request/list',
    method: 'get',
    params: query
  })
}




// 查询申请信息详细
export function getRequest(query) {
  return request({
    url: '/bath/request/lists',
    method: 'get'
  })
}

// 新增申请信息
export function addRequest(data) {
  return request({
    url: '/bath/request',
    method: 'post',
    data: data
  })
}

// 修改申请信息
export function updateRequest(data) {
  return request({
    url: '/bath/request',
    method: 'put',
    data: data
  })
}

// 删除申请信息
export function delRequest(id) {
  return request({
    url: '/bath/request/' + id,
    method: 'delete'
  })
}

// 导出申请信息
export function exportRequest(query) {
  return request({
    url: '/bath/request/export',
    method: 'get',
    params: query
  })
}